//<![CDATA[
// Emoticon bar before comment-form
// www.bloggerspice.com
$(function() {
    $(putEmoAbove)
        .before('<div style="text-align:center" class="BSemoWrap"> :) :)) ;(( :-) =)) ;( :p :o :-? (p) :-s :-# x-)  (k)  (h)  (c)  cheer  ;-( :d :-d @-) :&gt;) (o) [-( (m) 8-) :-t :-b  b-( =p~  $-)  (b)  (f) </div>');
    var emo = function(emo, imgRep, BSemoKey) {
        $(emoRange)
            .each(function() {
            $(this)
                .html($(this)
                .html()
                .replace(/<br>:/g, "<br> :")
                .replace(/<br>;/g, "<br> ;")
                .replace(/<br>=/g, "<br> =")
                .replace(/<br>\^/g, "<br> ^")
                .replace(emo, " <img style='max-height:100%' src='" + imgRep + "' class='emo delayLoad' alt='" + BSemoKey + "' />"));
        });
    };
    emo(/\s:\)\)+/g, "http://1.bp.blogspot.com/-kuYqVovWHKM/UeFZFdS3VGI/AAAAAAAAA_s/HFdG-XgiE4M/s1600/kiki.png", ":))");
    emo(/\s;\(\(+/g, "http://2.bp.blogspot.com/-pkoQg11YaFU/UeFZBkuMHzI/AAAAAAAAA-Y/i1u0GNzZLSU/s1600/cry.png", ";((");
    emo(/\s:\)+/g, "http://3.bp.blogspot.com/-IjiQd9l-oDQ/UeFZJL8C1rI/AAAAAAAABA4/ApWEuIUTBT8/s1600/smile.png", ":)");
    emo(/\s:-\)+/g, "http://3.bp.blogspot.com/-gIEBJe9Okx0/UeFZEdrX3SI/AAAAAAAAA_Y/nRrx4ACzZZg/s1600/grin.png", ":-)");
    emo(/\s;\(+/g, "http://1.bp.blogspot.com/-lG05CuZgmBc/UeFZDQrCIOI/AAAAAAAAA_A/5qab87SaYCQ/s1600/frown.png", ";(");
    emo(/\s:p/ig, "http://3.bp.blogspot.com/-wE4F7RvuXNs/UeFZKSsPj0I/AAAAAAAABBI/kcu_pSjQuUQ/s1600/tongue.png", ":p");
    emo(/\s:o/ig, "http://4.bp.blogspot.com/-DbD1uvAcHIk/UeFZENIJxmI/AAAAAAAAA_o/aCJ19RJjdPA/s1600/gasp.png", ":o");
    emo(/\s:-\?/g, "http://2.bp.blogspot.com/-FRCTQ7qnF3g/UeFZLX9mHGI/AAAAAAAABBY/YjTk0fR_Ib4/s1600/unsure.png", ":-?");
    emo(/\s\(p\)+/ig, "http://4.bp.blogspot.com/-r2eg0cK6238/UeFZEn8g2NI/AAAAAAAAA_g/XRTGPL3o4CI/s1600/heart.png", "(p)");
    emo(/\s:-s/ig, "http://4.bp.blogspot.com/-GFJK2Sxxg30/UeFZBRgXd7I/AAAAAAAAA_M/XGZK3VCf0mw/s1600/confused.png", ":-s");
    emo(/\s:-#/ig, "http://1.bp.blogspot.com/-derIXL8RTsI/UeFZFs7LS3I/AAAAAAAAA_4/vRuisMNrIQU/s1600/kiss.png", ":-#");
    emo(/\sx-\)+/ig, "http://4.bp.blogspot.com/-eHjgsMTRBH8/UeFZB94-zMI/AAAAAAAAA-c/N4biPY4o4Gk/s1600/curlylips.png", "x-)");
    emo(/\s\(k\)+/ig, "http://2.bp.blogspot.com/-sc2SxdsNDww/UeFZF1hAHGI/AAAAAAAAA_8/TsHX5jc70wU/s1600/like.png", "(k)");
    emo(/\s\(h\)+/ig, "http://1.bp.blogspot.com/-vhBftsFal7Q/UeFZCSiePpI/AAAAAAAAA-o/ELErixWBewo/s1600/dislike.png", "(h)");
    emo(/\s\(c\)+/ig, "http://2.bp.blogspot.com/-bL3bxJweMwI/UeFZIFUqLHI/AAAAAAAABAo/y1ysoLw0FiY/s1600/poop-smiley.png", "(c)");
    emo(/\scheer/ig, "http://2.bp.blogspot.com/-pcqdaAkWMCI/UeFZMzSxSaI/AAAAAAAABB8/RXshw-JV7Pw/s1600/wink.png", "cheer");
    emo(/\s=\)\)+/g, "http://3.bp.blogspot.com/-yLGN7066Fmc/UeFefF5wzvI/AAAAAAAABCY/-NitAumoKRQ/s1600/rofl.gif", "=))");
    emo(/\s:&gt;\)+/g, "http://2.bp.blogspot.com/-cMqdA3JC_q0/UeFZJu1p5eI/AAAAAAAABA8/bIxf_7JbjXo/s1600/sobria.gif", ":&gt;)");
    emo(/\s\(o\)+/ig, "http://4.bp.blogspot.com/-cZtjjrGa2H0/UeFZI8-h-iI/AAAAAAAABBw/3d18KD1bb-I/s1600/seifalsa.gif", "(o)");
    emo(/\s\[-\(+/g, "http://1.bp.blogspot.com/-2MQQwSvn3-A/UeFZGYXpR3I/AAAAAAAABAM/iW_7fkSusT0/s1600/lilo.gif", "[-(");
    emo(/\s;-\(+/g, "http://2.bp.blogspot.com/-g1C50NwJ9xE/UeFZNf_EFmI/AAAAAAAABCM/qTdgqRIVv_I/s1600/wtf.gif", ";-(");
    emo(/\s:d/ig, "http://2.bp.blogspot.com/-y1DnYIiW6os/UeFZMhKsAVI/AAAAAAAABB4/zMloiGGw0d8/s1600/urla.gif", ":d");
    emo(/\s:-d/ig, "http://2.bp.blogspot.com/-CUG3M_w8fJE/UeFZLOlPufI/AAAAAAAABBc/cjE-EHU0yxc/s1600/troll.gif", ":-d");
    emo(/\s@-\)+/g, "http://2.bp.blogspot.com/-qHmgktX6gus/UeFZKHFJ5fI/AAAAAAAABBM/LDu23ONSzyk/s1600/sticazzi.gif", "@-)");
    emo(/\s\(m\)+/ig, "http://2.bp.blogspot.com/-VIfboxsUizY/UeFZGuOgZlI/AAAAAAAABAI/d2qqfRYan9o/s1600/marina.gif", "(m)");
    emo(/\s8-\)+/ig, "http://3.bp.blogspot.com/-Ev84hR-mDHA/UeFZHgLg7GI/AAAAAAAABAg/rrHXTQ6HErM/s1600/muori.gif", "8-)");
    emo(/\s:-t/ig, "http://4.bp.blogspot.com/-Br7X31q-ZBE/UeFZHMw5kWI/AAAAAAAABAY/Lw04DVMJVNk/s1600/muoio.gif", ":-t");
    emo(/\s:-b/ig, "http://1.bp.blogspot.com/-7pb_6ZNUsxM/UeFZFNHzPyI/AAAAAAAABAs/PbJlMp5fNEk/s1600/jesus.gif", ":-b");
    emo(/\sb-\(+/ig, "http://4.bp.blogspot.com/-bZHCMk1O2Ec/UeFZDkM34hI/AAAAAAAAA_I/Z1Co_27cUto/s1600/gaga.gif", "b-(");
    emo(/\s=p~/ig, "http://4.bp.blogspot.com/-3x6TxUQsJoE/UeFZC1KSb3I/AAAAAAAAA-w/ab_uacBVmM4/s1600/dope.gif", "=p~");
    emo(/\s\$-\)+/ig, "http://4.bp.blogspot.com/-zOy6oes6-3g/UeFZAlBXr5I/AAAAAAAAA-I/S2aOcjdxw1E/s1600/9anni.gif", "$-)");
    emo(/\s\(b\)+/ig, "http://1.bp.blogspot.com/-bMIGoQoXr-0/UeFZAMH35xI/AAAAAAAAA9w/dmvs1jr8qPg/s1600/AH.gif", "(b)");
    emo(/\s\(f\)+/ig, "http://1.bp.blogspot.com/-FhxbZLL3RFg/UeFZAFhtjbI/AAAAAAAAA90/z-rGg1UHwwg/s1600/brit.gif", "(f)");
   
// Show alert one times!
    $('div.BSemoWrap')
        .one("click", function() {
        if (emoMessage) {
            alert(emoMessage);
        }
    });
    // Click to show the code!
       $('.emo')
        .css('cursor', 'pointer')
        .live("click", function(e) {
        $('.BSemoKey')
            .remove();
        $(this)
            .after('<input class="BSemoKey" type="text" size="' + this.alt.length + '" value=" ' + this.alt + '" />');
$('.BSemoKey')
            .trigger("select");
e.stopPropagation();
    });
    $('.BSemoKey')
        .live("click", function() {
        $(this)
            .focus()
            .select();
    });
});
//]]>